package borge.web.teamspirit.client.panels;

import java.io.Serializable;

import borge.web.teamspirit.client.interfaces.MenuEventHandler;
import borge.web.teamspirit.client.interfaces.ServerCallbackHandler;
import borge.web.teamspirit.client.interfaces.WidgetEventHandler;
import borge.web.teamspirit.client.servercomm.DBQueryResult;
import borge.web.teamspirit.client.widgets.SearchTeamWidget;

public class SearchPanel extends MiddlePanel implements WidgetEventHandler,
		MenuEventHandler, ServerCallbackHandler {

	private SearchTeamWidget iSearchTeamWidget;
	
	public SearchPanel(){
		
		iSearchTeamWidget = new SearchTeamWidget(this);
		
		add(iSearchTeamWidget);
	}
	
	@Override
	public void handleWidgetEvent(WidgetEventType aEvent) {
		// TODO Auto-generated method stub

		
		
	}

	@Override
	public boolean handleMenuEvent(String aLinkText) {
		// TODO Auto-generated method stub
		
		if(aLinkText.equals("Search")){
			
			
			
			return true;
		}
			
		
		
		return false;
	}

	@Override
	public <T extends Serializable> void handleServerCallback(
			DBQueryResult<T> aResult, CallbackType aType) {
		// TODO Auto-generated method stub

	}

	@Override
	public void handleServerError(Throwable t) {
		// TODO Auto-generated method stub

	}
}